package com.alan.annotation.validation.constraints.Impl;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Null;

public class NullValidator implements ConstraintValidator<Null, Object> {

	public void initialize(Null constraintAnnotation) {
	}

	public boolean isValid(Object object, ConstraintValidatorContext constraintValidatorContext) {
		return object == null;
	}

}
